package com.lovegu.other;

import java.util.function.Function;

/**
 * @author 老顾
 * @title: FunctionTest
 * @projectName java-restudy
 * @email: 1437594522@qq.com
 * @date 2022/9/26 17:27
 */
public class FunctionTest {
    public static void main(String[] args) {
        Function<Integer, LambdaTest> fun = (n) -> new LambdaTest(1);

        Function<Integer, LambdaTest> fun2 = LambdaTest::new;

        Function<Integer, Integer[]> fun3 = (n) -> new Integer[n];

        Function<Integer, Integer[]> fun4 = Integer[]::new;
    }
}
